package com.javaee6.liimp.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CommandinfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CommandinfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCommandidIsNull() {
            addCriterion("commandId is null");
            return (Criteria) this;
        }

        public Criteria andCommandidIsNotNull() {
            addCriterion("commandId is not null");
            return (Criteria) this;
        }

        public Criteria andCommandidEqualTo(Integer value) {
            addCriterion("commandId =", value, "commandid");
            return (Criteria) this;
        }

        public Criteria andCommandidNotEqualTo(Integer value) {
            addCriterion("commandId <>", value, "commandid");
            return (Criteria) this;
        }

        public Criteria andCommandidGreaterThan(Integer value) {
            addCriterion("commandId >", value, "commandid");
            return (Criteria) this;
        }

        public Criteria andCommandidGreaterThanOrEqualTo(Integer value) {
            addCriterion("commandId >=", value, "commandid");
            return (Criteria) this;
        }

        public Criteria andCommandidLessThan(Integer value) {
            addCriterion("commandId <", value, "commandid");
            return (Criteria) this;
        }

        public Criteria andCommandidLessThanOrEqualTo(Integer value) {
            addCriterion("commandId <=", value, "commandid");
            return (Criteria) this;
        }

        public Criteria andCommandidIn(List<Integer> values) {
            addCriterion("commandId in", values, "commandid");
            return (Criteria) this;
        }

        public Criteria andCommandidNotIn(List<Integer> values) {
            addCriterion("commandId not in", values, "commandid");
            return (Criteria) this;
        }

        public Criteria andCommandidBetween(Integer value1, Integer value2) {
            addCriterion("commandId between", value1, value2, "commandid");
            return (Criteria) this;
        }

        public Criteria andCommandidNotBetween(Integer value1, Integer value2) {
            addCriterion("commandId not between", value1, value2, "commandid");
            return (Criteria) this;
        }

        public Criteria andCommanddetailIsNull() {
            addCriterion("commandDetail is null");
            return (Criteria) this;
        }

        public Criteria andCommanddetailIsNotNull() {
            addCriterion("commandDetail is not null");
            return (Criteria) this;
        }

        public Criteria andCommanddetailEqualTo(String value) {
            addCriterion("commandDetail =", value, "commanddetail");
            return (Criteria) this;
        }

        public Criteria andCommanddetailNotEqualTo(String value) {
            addCriterion("commandDetail <>", value, "commanddetail");
            return (Criteria) this;
        }

        public Criteria andCommanddetailGreaterThan(String value) {
            addCriterion("commandDetail >", value, "commanddetail");
            return (Criteria) this;
        }

        public Criteria andCommanddetailGreaterThanOrEqualTo(String value) {
            addCriterion("commandDetail >=", value, "commanddetail");
            return (Criteria) this;
        }

        public Criteria andCommanddetailLessThan(String value) {
            addCriterion("commandDetail <", value, "commanddetail");
            return (Criteria) this;
        }

        public Criteria andCommanddetailLessThanOrEqualTo(String value) {
            addCriterion("commandDetail <=", value, "commanddetail");
            return (Criteria) this;
        }

        public Criteria andCommanddetailLike(String value) {
            addCriterion("commandDetail like", value, "commanddetail");
            return (Criteria) this;
        }

        public Criteria andCommanddetailNotLike(String value) {
            addCriterion("commandDetail not like", value, "commanddetail");
            return (Criteria) this;
        }

        public Criteria andCommanddetailIn(List<String> values) {
            addCriterion("commandDetail in", values, "commanddetail");
            return (Criteria) this;
        }

        public Criteria andCommanddetailNotIn(List<String> values) {
            addCriterion("commandDetail not in", values, "commanddetail");
            return (Criteria) this;
        }

        public Criteria andCommanddetailBetween(String value1, String value2) {
            addCriterion("commandDetail between", value1, value2, "commanddetail");
            return (Criteria) this;
        }

        public Criteria andCommanddetailNotBetween(String value1, String value2) {
            addCriterion("commandDetail not between", value1, value2, "commanddetail");
            return (Criteria) this;
        }

        public Criteria andCommandtypeIsNull() {
            addCriterion("commandType is null");
            return (Criteria) this;
        }

        public Criteria andCommandtypeIsNotNull() {
            addCriterion("commandType is not null");
            return (Criteria) this;
        }

        public Criteria andCommandtypeEqualTo(Integer value) {
            addCriterion("commandType =", value, "commandtype");
            return (Criteria) this;
        }

        public Criteria andCommandtypeNotEqualTo(Integer value) {
            addCriterion("commandType <>", value, "commandtype");
            return (Criteria) this;
        }

        public Criteria andCommandtypeGreaterThan(Integer value) {
            addCriterion("commandType >", value, "commandtype");
            return (Criteria) this;
        }

        public Criteria andCommandtypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("commandType >=", value, "commandtype");
            return (Criteria) this;
        }

        public Criteria andCommandtypeLessThan(Integer value) {
            addCriterion("commandType <", value, "commandtype");
            return (Criteria) this;
        }

        public Criteria andCommandtypeLessThanOrEqualTo(Integer value) {
            addCriterion("commandType <=", value, "commandtype");
            return (Criteria) this;
        }

        public Criteria andCommandtypeIn(List<Integer> values) {
            addCriterion("commandType in", values, "commandtype");
            return (Criteria) this;
        }

        public Criteria andCommandtypeNotIn(List<Integer> values) {
            addCriterion("commandType not in", values, "commandtype");
            return (Criteria) this;
        }

        public Criteria andCommandtypeBetween(Integer value1, Integer value2) {
            addCriterion("commandType between", value1, value2, "commandtype");
            return (Criteria) this;
        }

        public Criteria andCommandtypeNotBetween(Integer value1, Integer value2) {
            addCriterion("commandType not between", value1, value2, "commandtype");
            return (Criteria) this;
        }

        public Criteria andCommandtimeIsNull() {
            addCriterion("commandTime is null");
            return (Criteria) this;
        }

        public Criteria andCommandtimeIsNotNull() {
            addCriterion("commandTime is not null");
            return (Criteria) this;
        }

        public Criteria andCommandtimeEqualTo(Date value) {
            addCriterion("commandTime =", value, "commandtime");
            return (Criteria) this;
        }

        public Criteria andCommandtimeNotEqualTo(Date value) {
            addCriterion("commandTime <>", value, "commandtime");
            return (Criteria) this;
        }

        public Criteria andCommandtimeGreaterThan(Date value) {
            addCriterion("commandTime >", value, "commandtime");
            return (Criteria) this;
        }

        public Criteria andCommandtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("commandTime >=", value, "commandtime");
            return (Criteria) this;
        }

        public Criteria andCommandtimeLessThan(Date value) {
            addCriterion("commandTime <", value, "commandtime");
            return (Criteria) this;
        }

        public Criteria andCommandtimeLessThanOrEqualTo(Date value) {
            addCriterion("commandTime <=", value, "commandtime");
            return (Criteria) this;
        }

        public Criteria andCommandtimeIn(List<Date> values) {
            addCriterion("commandTime in", values, "commandtime");
            return (Criteria) this;
        }

        public Criteria andCommandtimeNotIn(List<Date> values) {
            addCriterion("commandTime not in", values, "commandtime");
            return (Criteria) this;
        }

        public Criteria andCommandtimeBetween(Date value1, Date value2) {
            addCriterion("commandTime between", value1, value2, "commandtime");
            return (Criteria) this;
        }

        public Criteria andCommandtimeNotBetween(Date value1, Date value2) {
            addCriterion("commandTime not between", value1, value2, "commandtime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}